<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <!-- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">-->
    <title>Title</title>

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
    <!--<link rel="stylesheet" href="../../../libs/bootstrap4/css/bootstrap.css">-->

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
    <style>
        body>div{
            margin-bottom: 50px;
        }
    </style>
</head>
<body>
<div class="container">
    <h2>基本进度条</h2>
    <p>要创建一个默认的进度条，可以在容器元素上添加 .progress 类，在子元素上添加 progress-bar 类，并设置进度条进度情况：:</p>
    <div class="progress">
        <div class="progress-bar" style="width:70%"></div>
    </div>
</div>
<div class="container">
    <h2>进度条高度</h2>
    <p>进度条高度默认为 16px。我们可以使用 CSS 的 height 属性来修改他：</p>
    <div class="progress" style="height:10px;">
        <div class="progress-bar" style="width:40%;"></div>
    </div>
    <br>
    <div class="progress" style="height:20px;">
        <div class="progress-bar" style="width:50%;"></div>
    </div>
    <br>
    <div class="progress" style="height:30px;">
        <div class="progress-bar" style="width:60%;"></div>
    </div>
</div>

<div class="container">
    <h2>进度条文本标签</h2>
    <div class="progress">
        <div class="progress-bar" style="width:70%">70%</div>
    </div>
</div>

<div class="container">
    <h2>多种颜色的进度条</h2>
    <p>Bootstrap4 提供了以下几种进度条颜色:</p>
    <div class="progress">
        <div class="progress-bar" style="width:30%"></div>
    </div>
    <br>
    <div class="progress">
        <div class="progress-bar bg-success" style="width:40%"></div>
    </div>
    <br>
    <div class="progress">
        <div class="progress-bar bg-info" style="width:50%"></div>
    </div>
    <br>
    <div class="progress">
        <div class="progress-bar bg-warning" style="width:60%"></div>
    </div>
    <br>
    <div class="progress">
        <div class="progress-bar bg-danger" style="width:70%"></div>
    </div>
</div>
<div class="container">
    <h2>条纹的进度条</h2>
    <p>可以使用 .progress-bar-striped 类来设置条纹进度条：</p>
    <div class="progress">
        <div class="progress-bar progress-bar-striped" style="width:30%"></div>
    </div>
    <br>
    <div class="progress">
        <div class="progress-bar bg-success progress-bar-striped" style="width:40%"></div>
    </div>
    <br>
    <div class="progress">
        <div class="progress-bar bg-info progress-bar-striped" style="width:50%"></div>
    </div>
    <br>
    <div class="progress">
        <div class="progress-bar bg-warning progress-bar-striped" style="width:60%"></div>
    </div>
    <br>
    <div class="progress">
        <div class="progress-bar bg-danger progress-bar-striped" style="width:70%"></div>
    </div>
</div>
<div class="container">
    <h2>动画进度条</h2>
    <p>使用 .progress-bar-animated 类可以为进度条添加动画：</p>
    <div class="progress">
        <div class="progress-bar progress-bar-striped progress-bar-animated" style="width:40%"></div>
    </div>
</div>
<div class="container">
    <h2>混合色彩进度条</h2>
    <p>进度条可以设置多种颜色:</p>
    <div class="progress">
        <div class="progress-bar bg-success" style="width:40%">
            Free Space
        </div>
        <div class="progress-bar bg-warning" style="width:10%">
            Warning
        </div>
        <div class="progress-bar bg-danger" style="width:20%">
            Danger
        </div>
    </div>
</div>
</body>
</html>